package co.yixiang.yshop.module.system.controller.admin.roleauthdata.vo;

import co.yixiang.yshop.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static co.yixiang.yshop.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 角色权限数据分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SysRoleAuthDataPageReqVO extends PageParam {

    @Schema(description = "数据类型ID", example = "1")
    private Integer dataTypeId;

    @Schema(description = "角色ID", example = "1")
    private Integer roleId;

    @Schema(description = "用户ID", example = "1")
    private Integer userId;

    @Schema(description = "节点ID", example = "node001")
    private String nodeId;

    @Schema(description = "级别ID", example = "1")
    private Integer levelId;

    @Schema(description = "权限值", example = "read,write")
    private String authValue;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

} 